#include<iostream>
using namespace std;

enum color { red=10, green=0, blue };
enum class side { right=-2, left };
enum class thing:char { wrong='R', right='Q' };

int main() {
    color c = blue;
    side s = side::right;
    thing t = thing::right;
    cout << c << endl;
    cout << static_cast<underlying_type<side>::type>(s) << endl;
    std::cout << static_cast<std::underlying_type<thing>::type>(t) << std::endl;
    return 0;
}